<!DOCTYPE html>
<html>
<body>
<h2>Hello World!</h2>

<form action="accountController.do">
	<input type="hidden" name="method" value="login">
	<input type="text" name="username">
	<input type="submit" name="登录">
</form>
<input type="button" name="注册" onclick="register()">

<script>
function register(){
	document.location='accountController.do?method=register';
}

</script>
</body>
</html>
